<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>飞机大战</title>
  <link rel="icon" href="./img/飞机.png">
  <style>
    * {
      margin: 0;
      padding: 0;
    }

    body {
      background-color: #000;
    }

    #canvas {
      border: 2px solid pink;
    }

    #stage {
      width: 480px;
      height: 700px;
      margin: 0 auto;
    }
  </style>
</head>

<body>
  <div id="stage">
    <canvas id="canvas" width="480px" height="700px"></canvas>
  </div>
  <!-- 先加载配置项文件，提升性能 -->
  <script src="./js/config.js"></script>
  <script src="./js/sky.js"></script>
  <script src="./js/loading.js"></script>
  <script src="./js/hero.js"></script>
  <script src="./js/bullet.js"></script>
  <script src="./js/enemy.js"></script>
  <!-- 确保各类都加载完毕再加载主程序 -->
  <script src="./js/main.js"></script>
</body>

</html>